package io.github.wanggit.website.demos.zipkin_service_5.service;

import io.github.wanggit.website.demos.zipkin_service_5.dao.UserRepository;
import io.github.wanggit.website.demos.zipkin_service_5.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public List<User> listUsers(){
        return userRepository.findAll();
    }

}
